import { Input, Button } from 'antd'

export default {
  H: ({ value, onChange, type = 'selectDirectory' }: any) => {
    return (
      <div className='flex'>
        <Input value={value} />
        <Button type='primary' onClick={() => {
          const path = window.api.syncOperationWindow(type)
          onChange(path)
        }}>浏览</Button>
      </div>
    )
  },
}